﻿using HutongGames.PlayMaker;
using HutongGames.PlayMaker.Actions;
using System.Collections;
using System.Collections.Generic;
using UnityEngine;

public abstract class CondAction : SendMethod
{
    public abstract BaseCond Condition { get;}

    public override void OnEnter()
    {
        bool l = Condition.Condition();
        string s = Condition.GetEventName();

        if (l)
        {
            this.Fsm.Event(s);
            Debug.Log("发送事件");
        }
        this.Finish();
    }
}
